package com.guapi.util.request;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 瓜皮哦
 */
public interface SelfRequestListener {
    /**
     * 提供SelfRequest实例
     * @return SelfRequest
     */
    SelfRequest newInstance();

    /**
     * 实例化之后，扩展属性初始化
     * @param httpServletRequest request
     * @param selfRequest 实例
     */
    void afterInitialize(HttpServletRequest httpServletRequest, SelfRequest selfRequest);
}
